The current libxl_set_memory_target function subtracts a negative amount
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 1 Feb 2011 19:25:08 +0000 (19:25 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 1 Feb 2011 19:25:08 +0000 (19:25 +0000)
commit3ddd6a650bd220252584fdd111fa284ed062363b
treefa9b28c79e465cf6dd3aa730e099be5bf38fc4e3
parent047b1675f840761f1756c215ab5dfe78ef8546a9
The current libxl_set_memory_target function subtracts a negative amount
from an uint32_t variable without checking if the operation wraps
around.

This patch fixes this bug (that I previously believed to be an
hypervisor issue):
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1729

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c